package com.koo.modules.cx.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.koo.common.base.entity.CommonEntity;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiModel;
import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;

import java.math.BigDecimal;
import java.io.Serializable;
import java.util.Date;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 销售出库（配货/退货）
 *
 * @author charlin
 * @email 136137465@qq.com
 * @date 2023-01-05 16:11:44
 */
@Data
@ApiModel("销售出库（配货/退货）")
@TableName("cx_order_out")
public class CxOrderOutEntity extends CommonEntity {
    private static final long serialVersionUID = 1L;


    @ExcelIgnore
    @TableId
    private Long orderOutId;


    @ColumnWidth(11)
    @ExcelProperty("总部出库日期")
    @ApiModelProperty(value = "总部出库日期")
    private String headQuarterAllotDate;

    @ColumnWidth(11)
    @ExcelProperty("总部出库流水号")
    @ApiModelProperty(value = "总部出库流水号")
    private String headQuarterAllotNo;

    @ColumnWidth(11)
    @ExcelProperty("出库明细单号")
    @ApiModelProperty(value = "出库明细单号")
    private String keyNo;

    @ColumnWidth(11)
    @ExcelProperty("出库单类别：1配货单2退货单")
    @ApiModelProperty(value = "出库单类别：1配货单2退货单")
    private Integer outType;

    @ColumnWidth(11)
    @ExcelProperty("货号")
    @ApiModelProperty(value = "货号")
    private String productCode;

    @ColumnWidth(11)
    @ExcelProperty("商品名")
    @ApiModelProperty(value = "商品名")
    private String productName;

    @ColumnWidth(11)
    @ExcelProperty("通用名")
    @ApiModelProperty(value = "通用名")
    private String genericName;

    @ColumnWidth(11)
    @ExcelProperty("规格")
    @ApiModelProperty(value = "规格")
    private String standard;

    @ColumnWidth(11)
    @ExcelProperty("单位")
    @ApiModelProperty(value = "单位")
    private String unit;

    @ColumnWidth(11)
    @ExcelProperty("产地")
    @ApiModelProperty(value = "产地")
    private String producingArea;

    @ColumnWidth(11)
    @ExcelProperty("生产单位")
    @ApiModelProperty(value = "生产单位")
    private String produceFactory;

    @ColumnWidth(11)
    @ExcelProperty("批准文号")
    @ApiModelProperty(value = "批准文号")
    private String approvalNo;

    @ColumnWidth(11)
    @ExcelProperty("剂型")
    @ApiModelProperty(value = "剂型")
    private String dosageForm;

    @ColumnWidth(11)
    @ExcelProperty("采购数量")
    @ApiModelProperty(value = "采购数量")
    private BigDecimal purchaseAmount;

    @ColumnWidth(11)
    @ExcelProperty("出库数量")
    @ApiModelProperty(value = "出库数量")
    private BigDecimal qualifiedAmount;

    @ColumnWidth(11)
    @ExcelProperty("采购单价")
    @ApiModelProperty(value = "采购单价")
    private BigDecimal purchasePrice;

    @ColumnWidth(11)
    @ExcelProperty("采购金额")
    @ApiModelProperty(value = "采购金额")
    private BigDecimal purchaseFee;

    @ColumnWidth(11)
    @ExcelProperty("批号")
    @ApiModelProperty(value = "批号")
    private String batchNo;

    @ColumnWidth(11)
    @ExcelProperty("生产日期")
    @ApiModelProperty(value = "生产日期")
    private String produceDate;

    @ColumnWidth(11)
    @ExcelProperty("有效期至")
    @ApiModelProperty(value = "有效期至")
    private String expiryDate;


}
